import { prop, modelOptions } from '@typegoose/typegoose' 
import { ApiProperty } from '@nestjs/swagger' 

@modelOptions({
    schemaOptions: {
        timestamps: true
    }
})
export class Works {
    @prop()
    @ApiProperty({ description: '作者' })
    author: string

    @prop()
    @ApiProperty({ description: '作品名'})
    title: string

    @prop()
    @ApiProperty({ description: '类别'})
    category: string

    @prop()
    @ApiProperty({ description: '封面'})
    cover: string

    @prop()
    @ApiProperty({ description: '简介'})
    synopsis: string

    @prop()
    @ApiProperty({ description: '视频'})
    video: string

    @prop()
    @ApiProperty({ description: '链接'})
    link: string
}